﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MASTER/Z16.Master" AutoEventWireup="true" CodeBehind="ListarTarefa.aspx.cs" Inherits="Z16.SITE.ListarTarefa" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div class="error" id="divError" runat="server" visible="false">
    <asp:Label ID="lblMensagem" runat="server"/>
</div>

    <div>
           <h3>TAREFAS</h3>
    </div>

    </br>
    </br>

    <div>
        <table>
            <tr>
            <td>Tarefa :</td>
            <td>
                <asp:TextBox ID="txtTarefa" runat="server"></asp:TextBox>
            </td>
      </tr>
            <tr>
            <td>Data Início :</td>
            <td>
                <asp:TextBox ID="txtDataIni" runat="server"></asp:TextBox>
            </td>
      </tr>
            <tr>
            <td>Data Fim :</td>
            <td>
                <asp:TextBox ID="txtDataFim" runat="server"></asp:TextBox>
            </td>
      </tr>
            <tr>
                <td>
                    <asp:Button class= "botaoCadastro" ID="btnPesquisar" runat="server" Text="Pesquisar" onclick="btnPesquisar_Click" />
                </td>
            </tr>
         </table>
    </div>

    </br>
    </br>

    <div>

        <asp:GridView ID="GridView1" runat="server" CellPadding="2" ForeColor="#000033" GridLines="Both"
                  AutoGenerateColumns="False" DataKeyNames="Cod_Tarefa" PageSize="5" Font-Names="Trebuchet MS" 
                  BorderColor = "#421C52" BorderStyle="Double">

            <HeaderStyle BackColor="#000033" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#EFF3FB" />
            <EditRowStyle BackColor="#2ff1BF" />
        
            <Columns>
                
                <asp:TemplateField HeaderText="Tarefa">
                    <ItemTemplate>
                        <%# Eval("Nome_Tarefa")%>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txtTarefa" runat="Server" Text='<%# Eval("Nome_Tarefa") %>' 
                            Height="22px"  Width="202px"></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField HeaderText="">
                    <ItemTemplate>
                               <a href="addCadTarefa.aspx?id=<%#DataBinder.Eval(Container.DataItem,"Cod_Tarefa")%>&cci=<%#DataBinder.Eval(Container.DataItem,"Cod_Tarefa")%>" class="link">
                                                Editar
                                            </a>                           

                    </ItemTemplate>
                </asp:TemplateField>
  
            </Columns>
        </asp:GridView>
    
    </div>

     </br>
     </br>

     <div>
        <asp:Button class= "botaoCadastro" ID="btnNovaTarefa" runat="server" Text="Nova Tarefa" onclick="btnNovaTarefa_Click" />
    </div>

</asp:Content>

